package com.ruoyi.common.core.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 奖品录入对象 reward
 * 
 * @author xukai
 * @date 2024-12-22
 */
public class Reward extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 奖品id */
    @Excel(name = "奖品id")
    private Long id;

    /** 奖品图片 */
    @Excel(name = "奖品图片")
    private String image;

    /** 所需积分 */
    @Excel(name = "所需积分")
    private Long price;

    /** 奖品名称 */
    @Excel(name = "奖品名称")
    private String title;

    /** 总数量 */
    @Excel(name = "总数量")
    private Long amount;

    /** 库存 */
    @Excel(name = "库存")
    private Long remain;

    /** 奖品描述 */
    @Excel(name = "奖品描述")
    private String detail;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;

    /** 删除标志 **/
    private Boolean isDeleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setAmount(Long amount) 
    {
        this.amount = amount;
    }

    public Long getAmount() 
    {
        return amount;
    }
    public void setRemain(Long remain) 
    {
        this.remain = remain;
    }

    public Long getRemain() 
    {
        return remain;
    }
    public void setDetail(String detail) 
    {
        this.detail = detail;
    }

    public String getDetail() 
    {
        return detail;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public void setIsDeleted(Boolean isDeleted){
        this.isDeleted = isDeleted;
    }

    public Boolean getIsDeleted(){
        return isDeleted;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("image", getImage())
            .append("price", getPrice())
            .append("title", getTitle())
            .append("amount", getAmount())
            .append("remain", getRemain())
            .append("detail", getDetail())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("idDeleted",getIsDeleted())
            .toString();
    }
}
